package com.thermofisher.dsc.amanda.security.config;

import java.security.interfaces.RSAPublicKey;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by wenjie.yang on 9/28/2018.
 */
@Component
public class KeyConfiguration {

    @Value("${jwt.rsa-secret:asdh$^&^gsa*&$iu}")
    private String userSecret;
    @Value("${client.rsa-secret:jhdgsai*^$&auhdg}")
    private String serviceSecret;
    private byte[] userPubKey;
    private byte[] userPriKey;
    private byte[] servicePriKey;
    private byte[] servicePubKey;

    private RSAPublicKey growthClickRSAKey;

    public RSAPublicKey getGrowthClickRSAKey() {
        return growthClickRSAKey;
    }

    public void setGrowthClickRSAKey(RSAPublicKey growthClickRSAKey) {
        this.growthClickRSAKey = growthClickRSAKey;
    }

    public String getUserSecret() {
        return userSecret;
    }

    public void setUserSecret(String userSecret) {
        this.userSecret = userSecret;
    }

    public String getServiceSecret() {
        return serviceSecret;
    }

    public void setServiceSecret(String serviceSecret) {
        this.serviceSecret = serviceSecret;
    }

    public byte[] getUserPubKey() {
        return userPubKey;
    }

    public void setUserPubKey(byte[] userPubKey) {
        this.userPubKey = userPubKey;
    }

    public byte[] getUserPriKey() {
        return userPriKey;
    }

    public void setUserPriKey(byte[] userPriKey) {
        this.userPriKey = userPriKey;
    }

    public byte[] getServicePriKey() {
        return servicePriKey;
    }

    public void setServicePriKey(byte[] servicePriKey) {
        this.servicePriKey = servicePriKey;
    }

    public byte[] getServicePubKey() {
        return servicePubKey;
    }

    public void setServicePubKey(byte[] servicePubKey) {
        this.servicePubKey = servicePubKey;
    }
}
